package com.example.timfinprototypeback.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.timfinprototypeback.entity.stock;
import com.example.timfinprototypeback.mapper.stockMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Service
@Component
public class stockServiceImpl extends ServiceImpl<stockMapper, stock> implements stockService {
    @Autowired
    private stockMapper myStockMapper;

    @Override
    public stock findStock(String tscode) {
        return myStockMapper.selectById(tscode);
    }
}
